package com.mes.biz.service.impl;

import com.github.pagehelper.PageInfo;
import com.mes.biz.domain.BizSupplier;
import com.mes.biz.domain.BizSupplierPayable;
import com.mes.biz.mapper.BizSupplierMapper;
import com.mes.biz.mapper.BizSupplierPayableMapper;
import com.mes.biz.service.BizSupplierPayableService;
import com.mes.biz.service.BizSupplierService;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.core.service.BaseServiceImpl;
import com.mes.common.exception.BizException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;

import javax.annotation.Resource;
import java.util.List;

/**
 * 应付账款Service业务层处理
 * @author hwg
 * @email hwg
 * @date 2023-04-30
 */
@Service
@Transactional(readOnly = true)
public class BizSupplierPayableServiceImpl extends BaseServiceImpl<BizSupplierPayableMapper, BizSupplierPayable> implements BizSupplierPayableService {

    @Resource
    private BizSupplierPayableMapper bizSupplierPayableMapper;

    @Override
    public BizSupplierPayable getBizSupplierPayableBySupplierCode(String supplierCode) {
        return bizSupplierPayableMapper.getBizSupplierPayableBySupplierCode(supplierCode);
    }
}
